package com.dff.jrfw;

import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;

import androidx.multidex.MultiDex;
import androidx.multidex.MultiDexApplication;

import com.dff.jrfw.common.Constant;
import com.dff.jrfw.jsbridge.BrowserClient;
import com.dff.jrfw.remote.ApiConfig;
import com.tencent.bugly.crashreport.CrashReport;

import cn.jpush.android.api.JPushInterface;

public class MyApplication extends MultiDexApplication {

    public static MyApplication application;
    private static Context context;


    @Override
    public void onCreate() {
        super.onCreate();
        context = this.getApplicationContext();
        application = this;
        MultiDex.install(application);
    }


    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
        registerActivityLifecycleCallbacks(ActivityManager.getInstance());
    }


    public static Context getContext() {
        return context;
    }


    public static MyApplication getApplication() {
        return application;
    }


}
